package com.mj.mafeed.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @description 订单
 * @author zhaominglei
 * @date 2014年12月9日
 */
public class OrderJSON implements Serializable {
	private static final long serialVersionUID = 2113875455664029666L;

	private Long orderId; //订单id
	
	/** 订单编号 */
	private String sn;

	/** 
	 * 订单状态 
	 * 0 未确定 1已确定 2已完成 3已取消
	 */
	private Integer orderStatus;

	/** 
	 * 支付状态
	 * 0未支付 1部分支付 2 已支付 3部分退款 4已退款
	 */
	private Integer paymentStatus;

	/** 
	 * 配送状态
	 * 0 未发货 1部分发货 2已发货 3 部分退货 4已退货
	 */
	private Integer shippingStatus;
	
	/**
	 * 获取订单金额
	 * 
	 * @return 订单金额
	 */
	private BigDecimal amount;
	
	private List<OrderItem> orderItems;
	
	public static class OrderItem implements Serializable {
		private static final long serialVersionUID = -4508007912218396879L;

		/** 商品id */
		private Long productId;
		
		/** 商品编号 */
		private String sn;

		/** 商品名称 */
		private String name;
		
		/** 数量 */
		private Integer quantity;

		/** 商品价格 */
		private BigDecimal price;
		
		/** 商品重量 */
		private Integer weight;
		
		/** 商品缩略图 */
		private String thumbnail;

		public Long getProductId() {
			return productId;
		}

		public void setProductId(Long productId) {
			this.productId = productId;
		}

		public String getSn() {
			return sn;
		}

		public void setSn(String sn) {
			this.sn = sn;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public Integer getQuantity() {
			return quantity;
		}

		public void setQuantity(Integer quantity) {
			this.quantity = quantity;
		}

		public BigDecimal getPrice() {
			return price;
		}

		public void setPrice(BigDecimal price) {
			this.price = price;
		}

		public Integer getWeight() {
			return weight;
		}

		public void setWeight(Integer weight) {
			this.weight = weight;
		}

		public String getThumbnail() {
			return thumbnail;
		}

		public void setThumbnail(String thumbnail) {
			this.thumbnail = thumbnail;
		}
	}


	public Long getOrderId() {
		return orderId;
	}


	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}


	public String getSn() {
		return sn;
	}


	public void setSn(String sn) {
		this.sn = sn;
	}


	public Integer getOrderStatus() {
		return orderStatus;
	}


	public void setOrderStatus(Integer orderStatus) {
		this.orderStatus = orderStatus;
	}


	public Integer getPaymentStatus() {
		return paymentStatus;
	}


	public void setPaymentStatus(Integer paymentStatus) {
		this.paymentStatus = paymentStatus;
	}


	public Integer getShippingStatus() {
		return shippingStatus;
	}


	public void setShippingStatus(Integer shippingStatus) {
		this.shippingStatus = shippingStatus;
	}


	public BigDecimal getAmount() {
		return amount;
	}


	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}


	public List<OrderItem> getOrderItems() {
		return orderItems;
	}


	public void setOrderItems(List<OrderItem> orderItems) {
		this.orderItems = orderItems;
	}

}
